﻿using Common.AspNetCore;
using Common.Infrastructure;
using StatsData.Api.Models.ReportQuery;
using StatsData.Api.Repository;
using System;
using System.Threading.Tasks;

namespace StatsData.Api.Service
{
    public class ReportQueryService : CommonService
    {
        private readonly ReportQueryRepository reportQueryRepository;

        public ReportQueryService(IServiceProvider provider, ReportQueryRepository reportQueryRepository) : base(provider)
        {
            this.reportQueryRepository = reportQueryRepository;
        }

        public async Task<ApiPagedResult<EmpWorkHourEffectiveOutputWorkhourModel>> GetEmpEffectiveOutputWorkhourOrderPageAsync(EmpWorkHourEffectiveOutputWorkhourPageParamModel request)
        {
            var page = await reportQueryRepository.GetEmpEffectiveOutputWorkhourOrderPageAsync(request);
            return page;
        }
    }
}
